<?php

namespace app\admin\validate;

use think\Validate;

class News extends Validate
{
    protected $rule = [
        'title'  =>  'require',
        'classify_id' => 'require|number|min:1|max:1|in:8,9',
        'target'  =>  'require|alphaDash|min:5|max:6'
    ];
}